package cn.stylefeng.guns.modular.packreview.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.packreview.entity.PackReviewDetails;
import cn.stylefeng.guns.modular.packreview.model.params.PackReviewDetailsParam;
import cn.stylefeng.guns.modular.packreview.model.result.PackReviewDetailsResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 打包复核详情 服务类
 * </p>
 *
 * @author wp
 * @since 2025-07-05
 */
public interface PackReviewDetailsService extends IService<PackReviewDetails> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-07-05
     */
    void add(PackReviewDetailsParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-07-05
     */
    void delete(PackReviewDetailsParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-07-05
     */
    void update(PackReviewDetailsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-07-05
     */
    PackReviewDetailsResult findBySpec(PackReviewDetailsParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-07-05
     */
    List<PackReviewDetailsResult> findListBySpec(PackReviewDetailsParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-07-05
     */
     LayuiPageInfo findPageBySpec(PackReviewDetailsParam param,String condition);

    void updatebyTrackNumberAndPickNumber(PackReviewDetailsParam packReviewDetailsParam);

    void revokePackReviewGoods(PackReviewDetailsParam packReviewDetailsParam);

    void insertPackReviewDetails(PackReviewDetails packReviewDetailsList);
}
